package com.solin.blog.common.base;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author solin
 * @Date 2022/1/10 21:41
 * @content
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class R<T> {
    private String code;
    private String msg;
    private T data;

    public R(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
